<?php

namespace App\ModelFilters;


class ChannelProductFilter extends BaseFilter
{
    /**
    * Related Models that have ModelFilters as well as the method on the ModelFilter
    * As [relationMethod => [input_key1, input_key2]].
    *
    * @var array
    */
    public $relations = [
    ];


    public function product_id($value){
        return $this->where('product_id', $value);
    }
    public function spec_id($value){
        return $this->where('spec_id', $value);
    }
    public function channel_id($value){
        return $this->where('channel_id', $value);
    }
    public function channel_api_code($value){
        return $this->where('channel_api_code', $value);
    }

    public function isp($value){
        return $this->related('product', 'isp', '=', $value);
    }
    public function type($value){
        return $this->related('product', 'type', '=', $value);
    }
}
